package com.designmodel.atcion.command;

/**
 * 命令模式
 *
 * @author think
 * @version 1.0.0
 * @since 2020/4/22
 */
public class Test {

    public static void main(String[] args) {
        Receiver receiver = new Receiver();
        Command cmd = new MyCommand(receiver);
        Invoker invoker = new Invoker(cmd);
        invoker.action();
    }
}
